controlP5
Class ColorPicker
java.lang.Object
controlP5.ControllerGroup
controlP5.ControlGroup
controlP5.ColorPicker
- All Implemented Interfaces:
- ControllerInterface, ControlListener, ControlP5Constants
public class ColorPicker
- extends ControlGroup
controlP5 is a processing gui library.
2007-2010 by Andreas Schlegel
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your option)
any later version. This library is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Author:
- Andreas Schlegel (http://www.sojamo.de)
| Fields inherited from interface controlP5.ControlP5Constants |
acceptClassList, ACTIVE, ALT, ARC, ARRAY, BACKSPACE, BOOLEAN, BOTTOM, CENTER, CONTROL, controlEventClass, CUSTOM, DECREASE, DEFAULT, DELETE, DOWN, ELLIPSE, ENTER, ESCAPE, EVENT, eventMethod, FIELD, FLOAT, HALF_PI, HIDE, HIGHLIGHT, HORIZONTAL, IMAGE, INCREASE, INTEGER, INVALID, KEYCONTROL, LEFT, LINE, LOAD, MENU, METHOD, MOVE, OVER, PI, PRESSED, PRINT, RELEASE, RESET, RIGHT, SAVE, SHIFT, SPRITE, STRING, SWITCH, SWITCH_BACK, SWITCH_FORE, TAB, TOP, TWO_PI, UP, VERBOSE, VERTICAL |
| Methods inherited from class controlP5.ControlGroup |
activateEvent, addCloseButton, addToXMLElement, arrayValue, getBackgroundHeight, hideBar, isBarVisible, mousePressed, removeCloseButton, setBackgroundColor, setBackgroundHeight, setBarHeight, showBar, stringValue, value |
| Methods inherited from class controlP5.ControllerGroup |
absolutePosition, add, addCanvas, addDrawable, captionLabel, close, color, continuousUpdateEvents, controller, disableCollapse, draw, enableCollapse, getAsXML, getColor, getHeight, getPickingColor, getTab, getWidth, getWindow, hide, id, init, isCollapse, isMoveable, isOpen, isUpdate, isVisible, isXMLsavable, keyEvent, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, name, open, parent, position, remove, remove, remove, removeCanvas, setColorActive, setColorBackground, setColorForeground, setColorLabel, setGroup, setGroup, setHeight, setId, setLabel, setMousePressed, setMoveable, setOpen, setPosition, setTab, setTab, setTab, setUpdate, setVisible, setWidth, show, update, updateAbsolutePosition, updateEvents, updateInternalEvents, valueLabel |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
controlEvent
public void controlEvent(ControlEvent theEvent)
- Description copied from interface:
ControlListener
- ControlListener is an interface that can be implemented by
a custom class. add the controlListener to a controller
with Controller.addListner()
- Specified by:
controlEvent in interface ControlListener- Overrides:
controlEvent in class ControlGroup
- Parameters:
theEvent - ControlEvent
Controller
setArrayValue
public void setArrayValue(float[] theArray)
- Overrides:
setArrayValue in class ControlGroup
setColorValue
public void setColorValue(int theColor)
- Description copied from class:
ControllerGroup
- set the color of the value label.
- Specified by:
setColorValue in interface ControllerInterface- Overrides:
setColorValue in class ControllerGroup
- Parameters:
theColor - int
getColorValue
public int getColorValue()
toString
public java.lang.String toString()
- Overrides:
toString in class ControlGroup
processing library controlP5 by Andreas Schlegel. (c) 2010